import Vue from 'vue'
import waves from '@/directive/waves' // 水波纹指令
import 'normalize.css/normalize.css'// A modern alternative to CSS resets
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'
import router from './router'
import store from './store'
import request from '@/utils/request'
import utils from '@/utils'

import './icons' // icon
import './errorLog'// error log
import './permission' // permission control
import './mock' // simulation data

Vue.use(Element, {
  size: 'medium' // set element-ui default size
})

Vue.use(utils)

// 声明全局的wave指令
Vue.directive('waves', waves)

// 设置全局变量数量
Vue.prototype._ajax = request

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
